<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition template="template.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:define name="menuDireito">
        <h:body>
            <div class="floatRight width73">
                <h1>Cadastrar encargo</h1>

                <h:form>
                    <f:view>
                        Professor
                        <h:panelGrid columns="1" cellpadding="2 ">
                            <p:autoComplete value="#{encargo.professor}" id="basicPojo" completeMethod="#{autoCompleteBean.completePlayer}"
                                             converter="professorConverter" size="75" forceSelection="true"/>
                        </h:panelGrid>
                    </f:view>
                    <br></br><br></br>

                    <p><label>Código da Disciplina  </label>  <div align="center">  Disciplina</div>
                        <p:inputText  rendered="true" value="#{encargo.cod_disciplina}"></p:inputText>
                        <p:inputText  rendered="true" size="50" value="#{encargo.disciplinas}"></p:inputText>

                    </p>
                    <p>Semestre<br></br>
                        <p:inputText rendered="true" value="#{encargo.semestre}"></p:inputText>
                    </p>
                    <p>Carga horária<br></br>
                        <p:inputText rendered="true" value="#{encargo.ch}"></p:inputText>
                    </p>
                    <br></br>



                    <div style="text-align: center">
                        <h:commandButton value="Salvar" action="#{encargo.envia}"></h:commandButton>
                        &nbsp;
                        <h:commandButton value="Pré-visualizar" action="previsualizarCadastroEncargo"></h:commandButton>
                    </div>
                </h:form>

            </div>
            <!-- </form>  -->
        </h:body>
    </ui:define>
</ui:composition>